#ifndef SETTINGDIALOG_H
#define SETTINGDIALOG_H

#include <QDialog>
#include <QLineEdit>
#include <QListWidget>
#include <QStringList>

class SettingDialog : public QDialog
{
  Q_OBJECT
public:
  SettingDialog(QWidget *parent=0);
  QStringList getPaths();
  void setPaths(QStringList paths);
  
  //protected:
  private slots:
  void setWorkPath();
  void setSpeechPath();
  void dictListDialog();
  void selectDict();
  void reject()		//avoid to close window while use press Esc
  {
    close();
  }
 private:
  QLineEdit *workPathLine, *selectDictLine, *speechPathLine;
  QListWidget *dictList;
  //  MainWindow *mParent;
};
#endif
